package com.luojiang.stock.controller;

import com.clinic.api.service.ClinicService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName StockController
 * @Description
 * @Author luojiang
 * @Date 2021/1/27 17:18
 */
@RestController
public class StockController {

    @Reference
    ClinicService clinicService;
    @GetMapping("/stock")
    private String stock() {

        return clinicService.clinicForApi("dubbo");
    }
}
